import request from '@/utils/request'

// 账单列表
export function billList(data) {
  return request({
    url: 'settlement/bill/index',
    method: 'post',
    data: data
  })
}
// 账单更新
export function billUpdate(data) {
  return request({
    url: 'settlement/bill/update',
    method: 'post',
    data: data
  })
}

// 账单添加
export function billAdd(data) {
  return request({
    url: 'settlement/bill/create',
    method: 'post',
    data: data
  })
}

// 账单删除
export function billDelete(data) {
  return request({
    url: 'settlement/bill/delete',
    method: 'post',
    data: data
  })
}

//打发票用单
export function billPrint(data) {
  return request({
    url: 'settlement/bill/print',
    method: 'post',
    data: data
  })
}

// 费用录入列表
export function expenseList(data) {
  return request({
    url: 'settlement/expenses/index',
    method: 'post',
    data: data
  })
}

// 费用录入添加
export function expenseAdd(data) {
  return request({
    url: 'settlement/expenses/create',
    method: 'post',
    data: data
  })
}

// 费用录入编辑
export function expenseEdit(data) {
  return request({
    url: 'settlement/expenses/update',
    method: 'post',
    data: data
  })
}

// 费用录入删除
export function expenseDel(data) {
  return request({
    url: 'settlement/expenses/delete',
    method: 'post',
    data: data
  })
}

// 查询全部费用类型代码
export function getExpensetype(data) {
  return request({
    url: 'basics/ExpenseType/getExpenseType',
    method: 'post',
    data: data
  })
}

//打印费用单
export function expensePrint(data) {
  return request({
    url: 'settlement/expenses/print',
    method: 'post',
    data: data
  })
}

// 获取工作号
export function getJobNumber(data) {
  return request({
    url: 'business/airlift/getJobNumber',
    method: 'post',
    data: data
  })
}

// 查询单条委托订单信息
export function getJobNumberInfo(data) {
  return request({
    url: 'business/airlift/getJobNumberInfo',
    method: 'post',
    data: data
  })
}

// 列表
export function invoiceList(data) {
  return request({
    url: 'settlement/invoice/index',
    method: 'post',
    data: data
  })
}

// 添加
export function invoiceAdd(data) {
  return request({
    url: 'settlement/invoice/create',
    method: 'post',
    data: data
  })
}

// 编辑
export function invoiceEdit(data) {
  return request({
    url: 'settlement/invoice/update',
    method: 'post',
    data: data
  })
}

// 删除
export function invoiceDel(data) {
  return request({
    url: 'settlement/invoice/delete',
    method: 'post',
    data: data
  })
}

//打发票用单
export function invoicePrint(data) {
  return request({
    url: 'settlement/invoice/print',
    method: 'post',
    data: data
  })
}


